﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FDStudio.Core.Search
{
    /*
     CreatedOn: 2018-03-13
     CreatedBy: Jackie Lee(天宇遊龍)
     */
    /// <summary>
    /// 字段权重
    /// </summary>
    public class FieldWeight
    {
        /// <summary>
        /// 字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 所占权重（默认为1.0）
        /// </summary>
        public float Weight { get; set; }

        public FieldWeight() : this("", 1.0f)
        {
        }

        public FieldWeight(string name, float weight)
        {
            Name = name;
            Weight = weight;
        }
    }
}
